package com.ruoyi.event.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.event.domain.bo.EventLeaveBo;
import com.ruoyi.event.domain.vo.EventLeaveVo;

import java.util.Collection;
import java.util.List;

/**
 * 请假Service接口
 *
 * @author strongme
 * @date 2023-02-04
 */
public interface IEventLeaveService {

    /**
     * 查询请假
     */
    EventLeaveVo queryById(Long leaveId);

    /**
     * 查询请假列表
     */
    TableDataInfo<EventLeaveVo> queryPageList(EventLeaveBo bo, PageQuery pageQuery);

    /**
     * 查询请假列表
     */
    List<EventLeaveVo> queryList(EventLeaveBo bo);

    /**
     * 新增请假
     */
    Boolean insertByBo(EventLeaveBo bo);

    /**
     * 修改请假
     */
    Boolean updateByBo(EventLeaveBo bo);

    /**
     * 校验并批量删除请假信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
